import java.util.Scanner;

public class Homework0324sixth {
    public static void main(String[] args) {
        System.out.println("您好，普通顾客请扣1，尊贵会员请扣2：");
        Scanner scanner = new Scanner(System.in);
        boolean flag = true;
        while (flag){
            int num1 = scanner.nextInt();{
                if (num1 == 2)
                    System.out.println("您好，尊贵的会员，请输入您的购物金额：");
                    double cash = scanner.nextDouble();
                    if (0 < cash && cash < 100) ;
                    {
                        System.out.println("您需要的支付金额是:" + (cash * 0.9));
                    }
                    if (cash > 100) ;
                    {
                        System.out.println(("您需要支付的金额是：" + (cash * 0.8)));
                    }
                    if (num1==2){
                        int num2 = scanner.nextInt();{
                    System.out.println("您好，普通顾客，请输入您的购物金额：");
                        double Cash = scanner.nextDouble();
                        if (0 < cash && cash < 100) ;
                        {
                            System.out.println("您是需要支付的金额是：" + cash);
                        }
                        if (cash >= 100) ;
                        {
                            System.out.println(("您需要支付的金额是" + (cash * 0.9)));
                        }
                    }
                }
            }
        }
    }
}